package org.jeecg.modules.flowable.common.fs;

import java.io.InputStream;

/**
 * Title:  文件基本操作接口
 * Desc:  <br>
 * Date: 5/21/22 8:50 AM <br>
 * Company: 联通（辽宁）产业互联网有限公司 <br>
 *
 * @author zxd
 * @version 1.0.0
 */
public interface FsOpt {
    /**
     * 获得文件服务器ID
     *
     * @return str
     */
    public String getId();

    /**
     * 文件保存
     *
     * @param argInputStream
     * @param argFileName
     * @param argFolderName
     * @return
     * @throws FsServerException
     */
    public FsDataResult save(InputStream argInputStream, String argFileName, String argFolderName) throws FsServerException;

    /**
     * 删除文件
     *
     * @param argFsData
     * @return
     * @throws FsServerException
     */
    public Boolean delete(FsData argFsData) throws FsServerException;

    /**
     * 获得文件流
     *
     * @param argFsData
     * @return
     * @throws FsServerException
     */
    public InputStream getFileInputStream(FsData argFsData) throws FsServerException;
}
